package command;

/**
 * @author wcj
 * @Date 2021/7/8 23:02
 * @Version 1.0
 */
public class Client {

    public static void main(String[] args) {
        // 烧烤师傅
        BarbecueMaster barbecueMaster = new BarbecueMaster();
        // 服务员
        Waiter waiter = new Waiter();
        // 具体订单
        MeatBarbecue meatBarbecue1 = new MeatBarbecue(barbecueMaster);
        MeatBarbecue meatBarbecue2 = new MeatBarbecue(barbecueMaster);
        ChickenBarbecue chickenBarbecue1 = new ChickenBarbecue(barbecueMaster);
        ChickenBarbecue chickenBarbecue2 = new ChickenBarbecue(barbecueMaster);
        // 通知服务员
        waiter.addBarbecue(meatBarbecue1);
        waiter.addBarbecue(meatBarbecue2);
        waiter.addBarbecue(chickenBarbecue1);
        waiter.addBarbecue(chickenBarbecue2);
        // 进行烧烤
        waiter.execute();
    }
}
